﻿'use strict';

/* ****************************************************************
BillingServiceProxy:
+ Events:
    + after
    + before
    + failed
    + success
**************************************************************** */

define([
    'webServiceProxy',
], function (WebServiceProxyDebug) {
    var Class = WebServiceProxyDebug.extend({

        constructor: function(options) {
            return Class.__super__.constructor.apply(this, [options]);
        },

        bill: function (data, options) {
            this.requestSuccess(
                'bill',
                data,
                new utils.backend.Response({ data: true }),
                options
            );

            return this;
        },
    });

    return Class;
}));